<h2>Managing tSysUser</h2>

<div class="actionBar">
[<?php echo CHtml::link('tSysUser List',array('list')); ?>]
[<?php echo CHtml::link('New tSysUser',array('create')); ?>]
</div>

<table class="dataGrid">
  <thead>
  <tr>
    <th><?php echo $sort->link('su_id'); ?></th>
    <th><?php echo $sort->link('su_email'); ?></th>
    <th><?php echo $sort->link('su_name'); ?></th>
    <th><?php echo $sort->link('su_firstname'); ?></th>
    <th><?php echo $sort->link('su_lastname'); ?></th>
    <th><?php echo $sort->link('su_cellphone'); ?></th>
    <th><?php echo $sort->link('su_homephone'); ?></th>
    <th><?php echo $sort->link('su_address'); ?></th>
    <th><?php echo $sort->link('su_zipcode'); ?></th>
    <th><?php echo $sort->link('su_ktp'); ?></th>
    <th><?php echo $sort->link('id_city'); ?></th>
    <th><?php echo $sort->link('su_activation'); ?></th>
    <th><?php echo $sort->link('su_password'); ?></th>
	<th>Actions</th>
  </tr>
  </thead>
  <tbody>
<?php foreach($models as $n=>$model): ?>
  <tr class="<?php echo $n%2?'even':'odd';?>">
    <td><?php echo CHtml::link($model->su_id,array('show','id'=>$model->su_id)); ?></td>
    <td><?php echo CHtml::encode($model->su_email); ?></td>
    <td><?php echo CHtml::encode($model->su_name); ?></td>
    <td><?php echo CHtml::encode($model->su_firstname); ?></td>
    <td><?php echo CHtml::encode($model->su_lastname); ?></td>
    <td><?php echo CHtml::encode($model->su_cellphone); ?></td>
    <td><?php echo CHtml::encode($model->su_homephone); ?></td>
    <td><?php echo CHtml::encode($model->su_address); ?></td>
    <td><?php echo CHtml::encode($model->su_zipcode); ?></td>
    <td><?php echo CHtml::encode($model->su_ktp); ?></td>
    <td><?php echo CHtml::encode($model->id_city); ?></td>
    <td><?php echo CHtml::encode($model->su_activation); ?></td>
    <td><?php echo CHtml::encode($model->su_password); ?></td>
    <td>
      <?php echo CHtml::link('Update',array('update','id'=>$model->su_id)); ?>
      <?php echo CHtml::linkButton('Delete',array(
      	  'submit'=>'',
      	  'params'=>array('command'=>'delete','id'=>$model->su_id),
      	  'confirm'=>"Are you sure to delete #{$model->su_id}?")); ?>
	</td>
  </tr>
<?php endforeach; ?>
  </tbody>
</table>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>